MKLIB=$(HOME)/mkl/9.1/lib/32/
SPARSKIT=$(HOME)/workspace/vol3/ascotti/SPARSKIT2
#ELLIKIT=$(HOME)/vol2/ELLIKIT
FC=ifort -g -CB -traceback
#FC=ifort -xW -O3 
LINKER=ifort -g -traceback 
LIB=  -lellikit  -lskit -lmkl_solver -lmkl_lapack  -lmkl_ia32 -lmkl_core  -llapack_core -lguide -lpthread 
LIBDIR=-L$(MKLIB) -L$(SPARSKIT) -L$(ELLIKIT)/lib
INCDIR=-I./ -I$(ELLIKIT)/include

OBJ=nodeinfodef.o libinterp.o metric.o test_ellikit3D.o
FILE=nodeinfodef.f90 libinterp.f90 metric.f90 test_ellikit3D.f90
.SUFFIXES: .f90 .o .mod
default: elliex

.f90.mod:
	$(FC) $(INCDIR) -c $<
.mod.o:
	

.f90.o:
	$(FC) $(INCDIR) -c $<


elliex:$(OBJ) 
	$(LINKER) $(LIBDIR) $(OBJ) $(LIB) -o elliex

clean:
	rm -f *~
	rm -f *.o
	rm -f *.mod
	rm -f elliex
